import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)
import 'dayjs/locale/zh-cn';
import locale from 'element-plus/es/locale/lang/zh-cn';
import ElementPlus from 'element-plus';
// 样式重置
import '@unocss/reset/sanitize/sanitize.css'
import '@unocss/reset/sanitize/assets.css'
import "./common/common.scss"
//路由
import router from "./router"
// icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 仓库
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)


app.use(ElementPlus, { locale })
app.use(router)
app.use(pinia)

app.mount('#app')
